package com.mars.module.admin.entity;

import cn.afterturn.easypoi.excel.annotation.Excel;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.time.LocalDateTime;

/**
 * 用户足迹对象 sys_foot_history
 *
 * @author mars
 * @date 2024-01-25
 */

@Data
@ApiModel(value = "用户足迹对象")
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
@TableName("sys_foot_history")
public class SysFootHistory {

    /**
     * ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    @ApiModelProperty(value = "id")
    private Long id;
    /**
     * user_id
     */
    @Excel(name = "user_id")
    @ApiModelProperty(value = "user_id")
    private Long userId;


    @TableField(exist = false)
    @ApiModelProperty(value = "用户姓名")
    private String userName;
    /**
     * product_id
     */
    @Excel(name = "product_id")
    @ApiModelProperty(value = "product_id")
    private Long productId;

    @TableField(exist = false)
    @ApiModelProperty(value = "产品名称")
    private String productName;


    @TableField(exist = false)
    @ApiModelProperty(value = "产品图片")
    private String picture;
    /**
     * create_time
     */
    @Excel(name = "create_time")
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    @ApiModelProperty(value = "创建时间")
    private LocalDateTime createTime;
}
